<extend name="Index/index" />
<block name="center">

<div class="col-lg-12" style="padding-left:0px;padding-right:0px;">
    <div class="portlet box portlet-blue" >
        <div class="portlet-header">
            <div class="caption">修改轮播</div>
        </div>
        <div class="portlet-body">
            <form class="form-horizontal" role="form" action="{:U('Admin/Shuffling/Update')}" method="post" enctype="multipart/form-data" >
                <div class="row">
                    <div class="col-md-6" style="width:700px">   
                        <div class="form-group">
                            <label class="col-md-3 control-label" for="exampleInputFile">轮播图片</label>
                            <div class="col-md-9">
                                <div style="float:left">
                                <input type="file" id="exampleInputFile" name="pic">
                                <p class="help-block">请上传格式为:jpg png jpeg...的图片</p>
                                </div>
                                <div style="float:left;margin-left:30px">
                                <img src="{$info[0]['pic']}" alt="" width="100px">
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            
                           <div class="form-actions">
                                <div class="col-md-offset-3 col-md-9">
                                    <input type="hidden" name="id" value={$info['0']['id']}>
                                    <button type="submit" class="btn btn-primary">修改</button>&nbsp;
                                    <button type="reset" class="btn btn-green">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
        
</block>